package com.demo;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@Slf4j
@EnableCreateCacheAnnotation  //开启缓存
@SpringBootApplication
public class Application {


	public static void main(String[] args) {
		SpringApplication app = new SpringApplication(Application.class);
		Environment env = app.run( args).getEnvironment();
		String port = env.getProperty("server.port");
//		SpringApplication.run(Application.class,args);
		System.out.println("访问地址:http://localhost:"+port+"/");
		System.out.println("swagger地址:http://localhost:"+port+"/doc.html");
		System.out.println("登录: http://localhost:"+port+"/myLogin");


	}
}
